<template>
	<view class="p-30">
		<view v-html="content"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			};
		},
		onLoad(e) {
			this.getDetail(e.key)
		},
		methods:{
			getDetail(key){
				this.$api.getConfig({
					name:key
				}).then(res=>{
					if(res.code==1){
						this.content = res.data
					}else{
						this.$tools.toast(res.msg)
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
